]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspacesView: Don't tween the upper of our scroll adjustment
authorJasper St. Pierre <jstpierre@mecheye.net>
Wed, 11 Sep 2013 15:47:56 +0000 (11:47 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Wed, 30 Oct 2013 17:17:39 +0000 (13:17 -0400)
This really doesn't make sense. The new upper should be the new workspace
index as soon as it's available.

js/ui/workspacesView.js

index 5b999f63840692cbfa50dce43e5d87e49f53fa33..bd2314bb55c8ffd6bafcc108d0a1e76ccfc6ebc8 100644 (file)
@@ -236,13 +236,7 @@ const WorkspacesView = new Lang.Class({
     },
 
     updateWorkspaces: function(oldNumWorkspaces, newNumWorkspaces) {
-        let active = global.screen.get_active_workspace_index();
-
-        Tweener.addTween(this.scrollAdjustment,
-                         { upper: newNumWorkspaces,
-                           time: WORKSPACE_SWITCH_TIME,
-                           transition: 'easeOutQuad'
-                         });
+        this.scrollAdjustment.upper = newNumWorkspaces;
 
         if (newNumWorkspaces > oldNumWorkspaces) {
             for (let w = oldNumWorkspaces; w < newNumWorkspaces; w++) {